*********************************************************************
*                       delete & move hack                          *
*                               *
*                                                                   * 
*                For vBulletin all versions                         *
*                              *
*********************************************************************



     :
1-             
               
2-                 
     


  : illogicalx



#################################################################################################################
# 
#                                              
# 
#################################################################################################################

1 -      email_threadid_delete
      : 


  $usenrma[username] 

       $bbtitle   $threadinfo[title].    
    . 

 :  $bbuserinfo[username]

   
  $bbtitle 




2-       email_threadidmove
      : 


  $usenrma[username] 

       $bbtitle   $threadinfo[title].   
   $foruminfo[title]         . 

 :  $bbuserinfo[username]

      :

$bburl/showthread.php?threadid=$threadid


   
  $bbtitle 


3-     emailsubject_thoprtion
      : 


  



#################################################################################################################
# 
#                                             
# 
#################################################################################################################

1-         postings.php


****     :


// ############################### start do delete thread ###############################
if ($HTTP_POST_VARS['action']=="dodeletethread") {

  $threadid = verifyid("thread",$threadid);
  $threadinfo=getthreadinfo($threadid);
  $foruminfo=getforuminfo($threadinfo[forumid]);


****      : 

///////
   $usen=$DB_site->query("SELECT  postuserid FROM thread where threadid ='$threadid'");
   $usenr=$DB_site->fetch_array($usen) ;
   $usenname=$DB_site->query("SELECT  username,email  FROM user where userid =' $usenr[postuserid]'");
   $usenrma =$DB_site->fetch_array($usenname) ;
////////
===================================================================

****     : 

  eval("standardredirect(\"".gettemplate("redirect_deletethread")."\",\"forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]\");");
 

*****     :

/////
   eval("\$emailmsg = \"".gettemplate("emailsubject_thoprtion",1,0)."\";");
   eval("\$emailsubject = \"".gettemplate("email_threadid_delete",1,0)."\";");
   mail($usenrma[email],$emailmsg,$emailsubject,"From: \"$bbtitle Mailer\" <$webmasteremail>");
/////


===================================================================

****     : 


  if ($method=="move") { // straight move
	$threadinfo[notes]="Moved to '$foruminfo[title]' by $bbuserinfo[username] on ".vbdate($dateformat." ".$timeformat,time()).". $threadinfo[notes]";
	$DB_site->query("UPDATE thread SET forumid='".addslashes($forumid)."',notes='".addslashes($threadinfo[notes])."',sticky=0 WHERE threadid='$threadid'");
 
****      : 

    ///////////
   $usen=$DB_site->query("SELECT  postuserid FROM thread where threadid ='$threadid'");
   $usenr=$DB_site->fetch_array($usen) ;
   $usenname=$DB_site->query("SELECT  username,email  FROM user where userid =' $usenr[postuserid]'");
   $usenrma =$DB_site->fetch_array($usenname) ;
   eval("\$emailmsg = \"".gettemplate("emailsubject_thoprtion",1,0)."\";");
   eval("\$emailsubject = \"".gettemplate("email_threadidmove",1,0)."\";");
   mail($usenrma[email],$emailmsg,$emailsubject,"From: \"$bbtitle Mailer\" <$webmasteremail>");

////////

===================================================================

 

       